package com.sendi.system.bean;

import com.sendi.system.socket.SocketSever;

/*
 * push 消息的工具类
 */
public class PushHelper {
public SocketSever socketSever;

//push 消息到客户端 pushid是 sys_push_config 表中pushid
public void PushMsg(Object msg,String pushid)
{
  this.socketSever.push(msg, pushid);
}
/*push 消息到客户端 pushid是 sys_push_config 表中pushid
 sessionid 本次会话的id
 user_id用户的主键
 */
public void PushMsg(Object msg,String pushid,String sessionid,String user_id)
{
  this.socketSever.push(msg, pushid,sessionid,user_id);
}
public SocketSever getSocketSever() {
	return socketSever;
}

public void setSocketSever(SocketSever socketSever) {
	this.socketSever = socketSever;
}
 
}
